/**
 * @brief Various definitions for the serial UART.
 *
 * @file serial.h
 *
 * @author Peter Kalauskas
 * @date Jan 23, 2009
 * @version 1.0
 */
#ifndef _SERIAL_H_
#define _SERIAL_H_

#include "config.h"

/**
 * @def BAUD
 * The baud rate desired for communication.
 */
#define BAUD 19200

/**
 * @def UART_BSCALE
 * The calculated baud rate register setting for asynchronous normal mode.
 */
#define UART_BSCALE (( F_CPU / BAUD / 16 ) - 1)

void init_serial(void);
void send_byte(uint8_t value);
void send_bytes(uint8_t *data, uint8_t length);

#endif
